<%--
  Created by IntelliJ IDEA.
  User: wzm
  Date: 2023/6/30
  Time: 10:27
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
	<title>Title</title>
	<script>
		function check(){
           //点击的时候换图片
			//获取图片设置src=生成验证的servlet
			document.querySelector("#img").src="/web07/code.jpg?d="+new Date();

		}
	</script>
</head>
<body>
<form action="/web07/register"  method="post">
	用户名: <input type="text" name="username" > <span>${smg}</span> <br>
	密码：<input type="password" name="password" > <br>
	<input type="text" name="code">
	<img id="img" src="/web07/code.jpg"> <a href="javascript:void(0)"  onclick="check()">看不清</a><br>
	<input type="submit" value="注册">
</form>

</body>
</html>
